package com.example.demo.service.Impl;

import com.example.demo.service.UserSerivce;
import org.springframework.stereotype.Service;

import javax.annotation.security.RolesAllowed;
@Service
public class UserServiceImpl implements UserSerivce {
    @Override
    public String addUser(){
        System.out.println("addUser!");
        return  null;
    }
    @Override
    @RolesAllowed({"ROLE_USER","ROLE_ADMIN"})
    public String updateUser(){
        System.out.println("updateUser!");
        return null;
    }
    @Override
    @RolesAllowed("ROLE_ADMIN")
    public String deleteUser(){
        System.out.println("deleteUser!");
        return null;
    }
}
